<template>
  <div class="login-right-page">
    <div class="login-right-head" >
      <span @click="tojob">我要找工作></span>
      </div>
    <div class="login-right-content">
      {{text}}
      <span class="login-register" @click="toRegister">{{button}}</span>
    </div>
    <div class="login-right-img">
      <img src="../../assets/img/register/login-right.png" alt>
    </div>
  </div>
</template>

<script>
export default {
  props: ['text', 'button'],
  data() {
    return {}
  },
  methods: {
    toRegister() {
      //点击跳转到注册或登录页
      if (this.button == '立即注册') {
        this.$router.push({ path: '/register' })
      }
      if (this.button == '立即登录') {
        this.$router.push({ path: '/login' })
      }
    },
    tojob() {
      //点击跳转我要找工作页面
      window.location.href="http://talent.gcs360.com"
      //console.log('我要找工作')
    }
  },
  components: {}
}
</script>
